<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生列表</title>
</head>
<body>
<h1>学生列表</h1>
<ul>
    <li th:each="student : ${allStudents}" th:text="${student.name} + ' - ' + ${student.age} + '岁 - ' + ${student.major}"></li>
</ul>

<h1>计算机专业学生</h1>
<ul>
    <li th:each="student : ${csStudents}" th:text="${student.name} + ' - ' + ${student.age} + '岁'"></li>
</ul>
</body>
</html>